#! /bin/bash'

function cp_interfaces_ota(){
    echo "do cp interfaces ota"
    local src_path="$module_path/interfaces"
    local des_path="$module_path/tmp/interfaces"
    #ota
    cp -fr $src_path/ota $des_path
    rm -rf $des_path/ota/unittest_ota_hal
    find $des_path/ota/1.0 -name "*.cpp" | xargs -I {} rm {}
    find $des_path/ota/1.0 -name "*.asn" | xargs -I {} rm {}

    cp $root_dir/$product_out/vendor/bin/hw/vendor.ecarx.xma.ota@1.0-service $des_path/ota/1.0/default
    cp $src_path/ota/1.0/default/Android.lib $des_path/ota/1.0/default/Android.bp
    echo "do cp interfaces ota done"
}
cp_interfaces_ota